#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from flask import Flask, send_from_directory
from flask_cors import CORS

app = Flask(__name__)
CORS(app)

@app.route('/')
def index():
    return send_from_directory('.', 'bank.html')

@app.route('/test')
def test():
    return "服务器运行正常！"

@app.route('/api/test')
def api_test():
    return {"success": True, "msg": "API连接正常"}

if __name__ == '__main__':
    print("🔧 启动简化服务器 at http://127.0.0.1:5000")
    app.run(host='127.0.0.1', port=5000, debug=True) 